package com.dragon.modules.yuegou.query.park;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.dragon.modules.yuegou.entity.park.CouponMerchantRefEntity;
import com.dragon.modules.yuegou.enums.park.CouponMerchantRefStatus;
import com.dragon.modules.yuegou.mybatis.Condition;
import com.dragon.modules.yuegou.mybatis.Query;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonUnwrapped;

import java.math.BigDecimal;
import java.time.LocalDateTime;
/**
 * 停车券与商户关系表 动态查询条件
 * 
 * @author px
 * @date 2019-04-18 10:07:33
 * @version 2.0
 */
@JsonInclude(Include.NON_NULL)
public class CouponMerchantRefQuery extends CouponMerchantRefEntity implements Query<CouponMerchantRefEntity> {

    /** 主键查询条件 */
	@JsonUnwrapped(prefix = "id")
	private Condition<String> idCondition;

    /** 查询条件 */
	@JsonUnwrapped(prefix = "busdId")
	private Condition<String> busdIdCondition;

    /** 查询条件 */
	@JsonUnwrapped(prefix = "skuId")
	private Condition<String> skuIdCondition;

    /** 停车劵id查询条件 */
	@JsonUnwrapped(prefix = "couponTemplate")
	private Condition<String> couponTemplateCondition;

    /** 查询条件 */
	@JsonUnwrapped(prefix = "couponTemplateName")
	private Condition<String> couponTemplateNameCondition;

    /** 商户id查询条件 */
	@JsonUnwrapped(prefix = "merchantId")
	private Condition<String> merchantIdCondition;

    /** 购买数量查询条件 */
	@JsonUnwrapped(prefix = "buyNum")
	private Condition<Integer> buyNumCondition;

    /** 购买单价查询条件 */
	@JsonUnwrapped(prefix = "buyPrice")
	private Condition<BigDecimal> buyPriceCondition;

    /** 已使用数量查询条件 */
	@JsonUnwrapped(prefix = "useNum")
	private Condition<Integer> useNumCondition;

    /** 购买时间查询条件 */
	@JsonUnwrapped(prefix = "buyTime")
	private Condition<LocalDateTime> buyTimeCondition;

    /** 剩余数量查询条件 */
	@JsonUnwrapped(prefix = "surplus")
	private Condition<Integer> surplusCondition;

    /** 审核人查询条件 */
	@JsonUnwrapped(prefix = "checkBy")
	private Condition<String> checkByCondition;

    /** 审核时间查询条件 */
	@JsonUnwrapped(prefix = "checkTime")
	private Condition<LocalDateTime> checkTimeCondition;

    /** 审核反馈查询条件 */
	@JsonUnwrapped(prefix = "checkRs")
	private Condition<String> checkRsCondition;

    /** 确认数量查询条件 */
	@JsonUnwrapped(prefix = "checkNum")
	private Condition<Integer> checkNumCondition;

    /** 有效起始时间查询条件 */
	@JsonUnwrapped(prefix = "beginTime")
	private Condition<LocalDateTime> beginTimeCondition;

    /** 有效结束时间查询条件 */
	@JsonUnwrapped(prefix = "endTime")
	private Condition<LocalDateTime> endTimeCondition;

    /** 支付现金查询条件 */
	@JsonUnwrapped(prefix = "payCash")
	private Condition<BigDecimal> payCashCondition;

    /** 支付时间查询条件 */
	@JsonUnwrapped(prefix = "payTime")
	private Condition<LocalDateTime> payTimeCondition;

    /** 创建人ID查询条件 */
	@JsonUnwrapped(prefix = "createdBy")
	private Condition<String> createdByCondition;

    /** 创建时间查询条件 */
	@JsonUnwrapped(prefix = "createdTime")
	private Condition<LocalDateTime> createdTimeCondition;

    /** [枚举]状态：0-待提交-READY、1-未审核-UNCHECK、2-审核通过-PASS、3-已支付-PAYED、4-已失效-INVALID查询条件 */
	@JsonUnwrapped(prefix = "status")
	private Condition<CouponMerchantRefStatus> statusCondition;

	/**
	 * 构造一个查询条件对象
	 */
	public CouponMerchantRefQuery() {
		super();
	}

	/**
	 * 依据实体对象构造一个查询条件对象
	 * 
	 * @param entity 实体对象
	 */
	public CouponMerchantRefQuery(CouponMerchantRefEntity entity) {
		super(entity);
	}

	/**
	 * 依据其它查询条件对象的信息构造一个查询条件对象
	 * 
	 * @param other 查询条件对象
	 */
	public CouponMerchantRefQuery(CouponMerchantRefQuery other) {
		super(other);
		if (other.idCondition != null) {
			this.idCondition = other.idCondition.copy();
		}
		if (other.busdIdCondition != null) {
			this.busdIdCondition = other.busdIdCondition.copy();
		}
		if (other.skuIdCondition != null) {
			this.skuIdCondition = other.skuIdCondition.copy();
		}
		if (other.couponTemplateCondition != null) {
			this.couponTemplateCondition = other.couponTemplateCondition.copy();
		}
		if (other.couponTemplateNameCondition != null) {
			this.couponTemplateNameCondition = other.couponTemplateNameCondition.copy();
		}
		if (other.merchantIdCondition != null) {
			this.merchantIdCondition = other.merchantIdCondition.copy();
		}
		if (other.buyNumCondition != null) {
			this.buyNumCondition = other.buyNumCondition.copy();
		}
		if (other.buyPriceCondition != null) {
			this.buyPriceCondition = other.buyPriceCondition.copy();
		}
		if (other.useNumCondition != null) {
			this.useNumCondition = other.useNumCondition.copy();
		}
		if (other.buyTimeCondition != null) {
			this.buyTimeCondition = other.buyTimeCondition.copy();
		}
		if (other.surplusCondition != null) {
			this.surplusCondition = other.surplusCondition.copy();
		}
		if (other.checkByCondition != null) {
			this.checkByCondition = other.checkByCondition.copy();
		}
		if (other.checkTimeCondition != null) {
			this.checkTimeCondition = other.checkTimeCondition.copy();
		}
		if (other.checkRsCondition != null) {
			this.checkRsCondition = other.checkRsCondition.copy();
		}
		this.setOther(other);
	}

	private void setOther(CouponMerchantRefQuery other){
		if(other.checkNumCondition != null) {
			this.checkNumCondition = other.checkNumCondition.copy();
		}
		if(other.beginTimeCondition != null) {
			this.beginTimeCondition = other.beginTimeCondition.copy();
		}
		if(other.endTimeCondition != null) {
			this.endTimeCondition = other.endTimeCondition.copy();
		}
		if(other.payCashCondition != null) {
			this.payCashCondition = other.payCashCondition.copy();
		}
		if(other.payTimeCondition != null) {
			this.payTimeCondition = other.payTimeCondition.copy();
		}
		if(other.createdByCondition != null) {
			this.createdByCondition = other.createdByCondition.copy();
		}
		if(other.createdTimeCondition != null) {
			this.createdTimeCondition = other.createdTimeCondition.copy();
		}
		if(other.statusCondition != null) {
			this.statusCondition = other.statusCondition.copy();
		}
	}

	@Override
	public QueryWrapper<CouponMerchantRefEntity> toQueryWrapper() {
		QueryWrapper<CouponMerchantRefEntity> wrapper = new QueryWrapper<>(this);
		if (idCondition != null) {
			idCondition.toWrapper(wrapper, COL_ID);
		}
		if (busdIdCondition != null) {
			busdIdCondition.toWrapper(wrapper, COL_BUSD_ID);
		}
		if (skuIdCondition != null) {
			skuIdCondition.toWrapper(wrapper, COL_SKU_ID);
		}
		if (couponTemplateCondition != null) {
			couponTemplateCondition.toWrapper(wrapper, COL_COUPON_TEMPLATE);
		}
		if (couponTemplateNameCondition != null) {
			couponTemplateNameCondition.toWrapper(wrapper, COL_COUPON_TEMPLATE_NAME);
		}
		if (merchantIdCondition != null) {
			merchantIdCondition.toWrapper(wrapper, COL_MERCHANT_ID);
		}
		if (buyNumCondition != null) {
			buyNumCondition.toWrapper(wrapper, COL_BUY_NUM);
		}
		if (buyPriceCondition != null) {
			buyPriceCondition.toWrapper(wrapper, COL_BUY_PRICE);
		}
		if (useNumCondition != null) {
			useNumCondition.toWrapper(wrapper, COL_USE_NUM);
		}
		if (buyTimeCondition != null) {
			buyTimeCondition.toWrapper(wrapper, COL_BUY_TIME);
		}
		if (surplusCondition != null) {
			surplusCondition.toWrapper(wrapper, COL_SURPLUS);
		}
		if (checkByCondition != null) {
			checkByCondition.toWrapper(wrapper, COL_CHECK_BY);
		}
		if (checkTimeCondition != null) {
			checkTimeCondition.toWrapper(wrapper, COL_CHECK_TIME);
		}
		if (checkRsCondition != null) {
			checkRsCondition.toWrapper(wrapper, COL_CHECK_RS);
		}
		return getQueryWrapper(wrapper);
	}
	private QueryWrapper<CouponMerchantRefEntity> getQueryWrapper(QueryWrapper<CouponMerchantRefEntity> wrapper){
		if (checkNumCondition != null) {
			checkNumCondition.toWrapper(wrapper, COL_CHECK_NUM);
		}
		if (beginTimeCondition != null) {
			beginTimeCondition.toWrapper(wrapper, COL_BEGIN_TIME);
		}
		if (endTimeCondition != null) {
			endTimeCondition.toWrapper(wrapper, COL_END_TIME);
		}
		if (payCashCondition != null) {
			payCashCondition.toWrapper(wrapper, COL_PAY_CASH);
		}
		if (payTimeCondition != null) {
			payTimeCondition.toWrapper(wrapper, COL_PAY_TIME);
		}
		if (createdByCondition != null) {
			createdByCondition.toWrapper(wrapper, COL_CREATED_BY);
		}
		if (createdTimeCondition != null) {
			createdTimeCondition.toWrapper(wrapper, COL_CREATED_TIME);
		}
		if (statusCondition != null) {
			statusCondition.toWrapper(wrapper, COL_STATUS);
		}
		return wrapper;
	}

	/**
	 * 构造并返回主键查询条件
	 * 
	 * @return idCondition 主键查询条件
	 */
	public Condition<String> id() {
		this.idCondition = new Condition<>();
		return this.idCondition;
	}
	
	/**
	 * 获取主键查询条件
	 * 
	 * @return idCondition 主键查询条件
	 */
	public Condition<String> getIdCondition() {
		return idCondition;
	}

	/**
	 * 设置主键查询条件
	 * 
	 * @param idCondition 主键查询条件
	 */
	public void setIdCondition(Condition<String> idCondition) {
		this.idCondition = idCondition;
	}

	/**
	 * 构造并返回查询条件
	 * 
	 * @return busdIdCondition 查询条件
	 */
	public Condition<String> busdId() {
		this.busdIdCondition = new Condition<>();
		return this.busdIdCondition;
	}
	
	/**
	 * 获取查询条件
	 * 
	 * @return busdIdCondition 查询条件
	 */
	public Condition<String> getBusdIdCondition() {
		return busdIdCondition;
	}

	/**
	 * 设置查询条件
	 * 
	 * @param busdIdCondition 查询条件
	 */
	public void setBusdIdCondition(Condition<String> busdIdCondition) {
		this.busdIdCondition = busdIdCondition;
	}

	/**
	 * 构造并返回查询条件
	 * 
	 * @return skuIdCondition 查询条件
	 */
	public Condition<String> skuId() {
		this.skuIdCondition = new Condition<>();
		return this.skuIdCondition;
	}
	
	/**
	 * 获取查询条件
	 * 
	 * @return skuIdCondition 查询条件
	 */
	public Condition<String> getSkuIdCondition() {
		return skuIdCondition;
	}

	/**
	 * 设置查询条件
	 * 
	 * @param skuIdCondition 查询条件
	 */
	public void setSkuIdCondition(Condition<String> skuIdCondition) {
		this.skuIdCondition = skuIdCondition;
	}

	/**
	 * 构造并返回停车劵id查询条件
	 * 
	 * @return couponTemplateCondition 停车劵id查询条件
	 */
	public Condition<String> couponTemplate() {
		this.couponTemplateCondition = new Condition<>();
		return this.couponTemplateCondition;
	}
	
	/**
	 * 获取停车劵id查询条件
	 * 
	 * @return couponTemplateCondition 停车劵id查询条件
	 */
	public Condition<String> getCouponTemplateCondition() {
		return couponTemplateCondition;
	}

	/**
	 * 设置停车劵id查询条件
	 * 
	 * @param couponTemplateCondition 停车劵id查询条件
	 */
	public void setCouponTemplateCondition(Condition<String> couponTemplateCondition) {
		this.couponTemplateCondition = couponTemplateCondition;
	}

	/**
	 * 构造并返回查询条件
	 * 
	 * @return couponTemplateNameCondition 查询条件
	 */
	public Condition<String> couponTemplateName() {
		this.couponTemplateNameCondition = new Condition<>();
		return this.couponTemplateNameCondition;
	}
	
	/**
	 * 获取查询条件
	 * 
	 * @return couponTemplateNameCondition 查询条件
	 */
	public Condition<String> getCouponTemplateNameCondition() {
		return couponTemplateNameCondition;
	}

	/**
	 * 设置查询条件
	 * 
	 * @param couponTemplateNameCondition 查询条件
	 */
	public void setCouponTemplateNameCondition(Condition<String> couponTemplateNameCondition) {
		this.couponTemplateNameCondition = couponTemplateNameCondition;
	}

	/**
	 * 构造并返回商户id查询条件
	 * 
	 * @return merchantIdCondition 商户id查询条件
	 */
	public Condition<String> merchantId() {
		this.merchantIdCondition = new Condition<>();
		return this.merchantIdCondition;
	}
	
	/**
	 * 获取商户id查询条件
	 * 
	 * @return merchantIdCondition 商户id查询条件
	 */
	public Condition<String> getMerchantIdCondition() {
		return merchantIdCondition;
	}

	/**
	 * 设置商户id查询条件
	 * 
	 * @param merchantIdCondition 商户id查询条件
	 */
	public void setMerchantIdCondition(Condition<String> merchantIdCondition) {
		this.merchantIdCondition = merchantIdCondition;
	}

	/**
	 * 构造并返回购买数量查询条件
	 * 
	 * @return buyNumCondition 购买数量查询条件
	 */
	public Condition<Integer> buyNum() {
		this.buyNumCondition = new Condition<>();
		return this.buyNumCondition;
	}
	
	/**
	 * 获取购买数量查询条件
	 * 
	 * @return buyNumCondition 购买数量查询条件
	 */
	public Condition<Integer> getBuyNumCondition() {
		return buyNumCondition;
	}

	/**
	 * 设置购买数量查询条件
	 * 
	 * @param buyNumCondition 购买数量查询条件
	 */
	public void setBuyNumCondition(Condition<Integer> buyNumCondition) {
		this.buyNumCondition = buyNumCondition;
	}

	/**
	 * 构造并返回购买单价查询条件
	 * 
	 * @return buyPriceCondition 购买单价查询条件
	 */
	public Condition<BigDecimal> buyPrice() {
		this.buyPriceCondition = new Condition<>();
		return this.buyPriceCondition;
	}
	
	/**
	 * 获取购买单价查询条件
	 * 
	 * @return buyPriceCondition 购买单价查询条件
	 */
	public Condition<BigDecimal> getBuyPriceCondition() {
		return buyPriceCondition;
	}

	/**
	 * 设置购买单价查询条件
	 * 
	 * @param buyPriceCondition 购买单价查询条件
	 */
	public void setBuyPriceCondition(Condition<BigDecimal> buyPriceCondition) {
		this.buyPriceCondition = buyPriceCondition;
	}

	/**
	 * 构造并返回已使用数量查询条件
	 * 
	 * @return useNumCondition 已使用数量查询条件
	 */
	public Condition<Integer> useNum() {
		this.useNumCondition = new Condition<>();
		return this.useNumCondition;
	}
	
	/**
	 * 获取已使用数量查询条件
	 * 
	 * @return useNumCondition 已使用数量查询条件
	 */
	public Condition<Integer> getUseNumCondition() {
		return useNumCondition;
	}

	/**
	 * 设置已使用数量查询条件
	 * 
	 * @param useNumCondition 已使用数量查询条件
	 */
	public void setUseNumCondition(Condition<Integer> useNumCondition) {
		this.useNumCondition = useNumCondition;
	}

	/**
	 * 构造并返回购买时间查询条件
	 * 
	 * @return buyTimeCondition 购买时间查询条件
	 */
	public Condition<LocalDateTime> buyTime() {
		this.buyTimeCondition = new Condition<>();
		return this.buyTimeCondition;
	}
	
	/**
	 * 获取购买时间查询条件
	 * 
	 * @return buyTimeCondition 购买时间查询条件
	 */
	public Condition<LocalDateTime> getBuyTimeCondition() {
		return buyTimeCondition;
	}

	/**
	 * 设置购买时间查询条件
	 * 
	 * @param buyTimeCondition 购买时间查询条件
	 */
	public void setBuyTimeCondition(Condition<LocalDateTime> buyTimeCondition) {
		this.buyTimeCondition = buyTimeCondition;
	}

	/**
	 * 构造并返回剩余数量查询条件
	 * 
	 * @return surplusCondition 剩余数量查询条件
	 */
	public Condition<Integer> surplus() {
		this.surplusCondition = new Condition<>();
		return this.surplusCondition;
	}
	
	/**
	 * 获取剩余数量查询条件
	 * 
	 * @return surplusCondition 剩余数量查询条件
	 */
	public Condition<Integer> getSurplusCondition() {
		return surplusCondition;
	}

	/**
	 * 设置剩余数量查询条件
	 * 
	 * @param surplusCondition 剩余数量查询条件
	 */
	public void setSurplusCondition(Condition<Integer> surplusCondition) {
		this.surplusCondition = surplusCondition;
	}

	/**
	 * 构造并返回审核人查询条件
	 * 
	 * @return checkByCondition 审核人查询条件
	 */
	public Condition<String> checkBy() {
		this.checkByCondition = new Condition<>();
		return this.checkByCondition;
	}
	
	/**
	 * 获取审核人查询条件
	 * 
	 * @return checkByCondition 审核人查询条件
	 */
	public Condition<String> getCheckByCondition() {
		return checkByCondition;
	}

	/**
	 * 设置审核人查询条件
	 * 
	 * @param checkByCondition 审核人查询条件
	 */
	public void setCheckByCondition(Condition<String> checkByCondition) {
		this.checkByCondition = checkByCondition;
	}

	/**
	 * 构造并返回审核时间查询条件
	 * 
	 * @return checkTimeCondition 审核时间查询条件
	 */
	public Condition<LocalDateTime> checkTime() {
		this.checkTimeCondition = new Condition<>();
		return this.checkTimeCondition;
	}
	
	/**
	 * 获取审核时间查询条件
	 * 
	 * @return checkTimeCondition 审核时间查询条件
	 */
	public Condition<LocalDateTime> getCheckTimeCondition() {
		return checkTimeCondition;
	}

	/**
	 * 设置审核时间查询条件
	 * 
	 * @param checkTimeCondition 审核时间查询条件
	 */
	public void setCheckTimeCondition(Condition<LocalDateTime> checkTimeCondition) {
		this.checkTimeCondition = checkTimeCondition;
	}

	/**
	 * 构造并返回审核反馈查询条件
	 * 
	 * @return checkRsCondition 审核反馈查询条件
	 */
	public Condition<String> checkRs() {
		this.checkRsCondition = new Condition<>();
		return this.checkRsCondition;
	}
	
	/**
	 * 获取审核反馈查询条件
	 * 
	 * @return checkRsCondition 审核反馈查询条件
	 */
	public Condition<String> getCheckRsCondition() {
		return checkRsCondition;
	}

	/**
	 * 设置审核反馈查询条件
	 * 
	 * @param checkRsCondition 审核反馈查询条件
	 */
	public void setCheckRsCondition(Condition<String> checkRsCondition) {
		this.checkRsCondition = checkRsCondition;
	}

	/**
	 * 构造并返回确认数量查询条件
	 * 
	 * @return checkNumCondition 确认数量查询条件
	 */
	public Condition<Integer> checkNum() {
		this.checkNumCondition = new Condition<>();
		return this.checkNumCondition;
	}
	
	/**
	 * 获取确认数量查询条件
	 * 
	 * @return checkNumCondition 确认数量查询条件
	 */
	public Condition<Integer> getCheckNumCondition() {
		return checkNumCondition;
	}

	/**
	 * 设置确认数量查询条件
	 * 
	 * @param checkNumCondition 确认数量查询条件
	 */
	public void setCheckNumCondition(Condition<Integer> checkNumCondition) {
		this.checkNumCondition = checkNumCondition;
	}

	/**
	 * 构造并返回有效起始时间查询条件
	 * 
	 * @return beginTimeCondition 有效起始时间查询条件
	 */
	public Condition<LocalDateTime> beginTime() {
		this.beginTimeCondition = new Condition<>();
		return this.beginTimeCondition;
	}
	
	/**
	 * 获取有效起始时间查询条件
	 * 
	 * @return beginTimeCondition 有效起始时间查询条件
	 */
	public Condition<LocalDateTime> getBeginTimeCondition() {
		return beginTimeCondition;
	}

	/**
	 * 设置有效起始时间查询条件
	 * 
	 * @param beginTimeCondition 有效起始时间查询条件
	 */
	public void setBeginTimeCondition(Condition<LocalDateTime> beginTimeCondition) {
		this.beginTimeCondition = beginTimeCondition;
	}

	/**
	 * 构造并返回有效结束时间查询条件
	 * 
	 * @return endTimeCondition 有效结束时间查询条件
	 */
	public Condition<LocalDateTime> endTime() {
		this.endTimeCondition = new Condition<>();
		return this.endTimeCondition;
	}
	
	/**
	 * 获取有效结束时间查询条件
	 * 
	 * @return endTimeCondition 有效结束时间查询条件
	 */
	public Condition<LocalDateTime> getEndTimeCondition() {
		return endTimeCondition;
	}

	/**
	 * 设置有效结束时间查询条件
	 * 
	 * @param endTimeCondition 有效结束时间查询条件
	 */
	public void setEndTimeCondition(Condition<LocalDateTime> endTimeCondition) {
		this.endTimeCondition = endTimeCondition;
	}

	/**
	 * 构造并返回支付现金查询条件
	 * 
	 * @return payCashCondition 支付现金查询条件
	 */
	public Condition<BigDecimal> payCash() {
		this.payCashCondition = new Condition<>();
		return this.payCashCondition;
	}
	
	/**
	 * 获取支付现金查询条件
	 * 
	 * @return payCashCondition 支付现金查询条件
	 */
	public Condition<BigDecimal> getPayCashCondition() {
		return payCashCondition;
	}

	/**
	 * 设置支付现金查询条件
	 * 
	 * @param payCashCondition 支付现金查询条件
	 */
	public void setPayCashCondition(Condition<BigDecimal> payCashCondition) {
		this.payCashCondition = payCashCondition;
	}

	/**
	 * 构造并返回支付时间查询条件
	 * 
	 * @return payTimeCondition 支付时间查询条件
	 */
	public Condition<LocalDateTime> payTime() {
		this.payTimeCondition = new Condition<>();
		return this.payTimeCondition;
	}
	
	/**
	 * 获取支付时间查询条件
	 * 
	 * @return payTimeCondition 支付时间查询条件
	 */
	public Condition<LocalDateTime> getPayTimeCondition() {
		return payTimeCondition;
	}

	/**
	 * 设置支付时间查询条件
	 * 
	 * @param payTimeCondition 支付时间查询条件
	 */
	public void setPayTimeCondition(Condition<LocalDateTime> payTimeCondition) {
		this.payTimeCondition = payTimeCondition;
	}

	/**
	 * 构造并返回创建人ID查询条件
	 * 
	 * @return createdByCondition 创建人ID查询条件
	 */
	public Condition<String> createdBy() {
		this.createdByCondition = new Condition<>();
		return this.createdByCondition;
	}
	
	/**
	 * 获取创建人ID查询条件
	 * 
	 * @return createdByCondition 创建人ID查询条件
	 */
	public Condition<String> getCreatedByCondition() {
		return createdByCondition;
	}

	/**
	 * 设置创建人ID查询条件
	 * 
	 * @param createdByCondition 创建人ID查询条件
	 */
	public void setCreatedByCondition(Condition<String> createdByCondition) {
		this.createdByCondition = createdByCondition;
	}

	/**
	 * 构造并返回创建时间查询条件
	 * 
	 * @return createdTimeCondition 创建时间查询条件
	 */
	public Condition<LocalDateTime> createdTime() {
		this.createdTimeCondition = new Condition<>();
		return this.createdTimeCondition;
	}
	
	/**
	 * 获取创建时间查询条件
	 * 
	 * @return createdTimeCondition 创建时间查询条件
	 */
	public Condition<LocalDateTime> getCreatedTimeCondition() {
		return createdTimeCondition;
	}

	/**
	 * 设置创建时间查询条件
	 * 
	 * @param createdTimeCondition 创建时间查询条件
	 */
	public void setCreatedTimeCondition(Condition<LocalDateTime> createdTimeCondition) {
		this.createdTimeCondition = createdTimeCondition;
	}

	/**
	 * 构造并返回[枚举]状态：0-待提交-READY、1-未审核-UNCHECK、2-审核通过-PASS、3-已支付-PAYED、4-已失效-INVALID查询条件
	 * 
	 * @return statusCondition [枚举]状态：0-待提交-READY、1-未审核-UNCHECK、2-审核通过-PASS、3-已支付-PAYED、4-已失效-INVALID查询条件
	 */
	public Condition<CouponMerchantRefStatus> status() {
		this.statusCondition = new Condition<>();
		return this.statusCondition;
	}
	
	/**
	 * 获取[枚举]状态：0-待提交-READY、1-未审核-UNCHECK、2-审核通过-PASS、3-已支付-PAYED、4-已失效-INVALID查询条件
	 * 
	 * @return statusCondition [枚举]状态：0-待提交-READY、1-未审核-UNCHECK、2-审核通过-PASS、3-已支付-PAYED、4-已失效-INVALID查询条件
	 */
	public Condition<CouponMerchantRefStatus> getStatusCondition() {
		return statusCondition;
	}

	/**
	 * 设置[枚举]状态：0-待提交-READY、1-未审核-UNCHECK、2-审核通过-PASS、3-已支付-PAYED、4-已失效-INVALID查询条件
	 * 
	 * @param statusCondition [枚举]状态：0-待提交-READY、1-未审核-UNCHECK、2-审核通过-PASS、3-已支付-PAYED、4-已失效-INVALID查询条件
	 */
	public void setStatusCondition(Condition<CouponMerchantRefStatus> statusCondition) {
		this.statusCondition = statusCondition;
	}

}
